#!/bin/bash
if [ ! -d "/led/" ];then
mkdir /led
wget -qO /led/blue_off https://gitee.com/saf4/wankeyunled/raw/master/led/blue_off
chmod 777 /led/*
echo "/led/blue_off" >> /etc/rc.local
echo "部署完成，请耐心等待1分钟"

else
echo "貌似已经部署过了，请确认是否工作正常"
echo "如不正常，请删除根目录下led目录后重新执行，rm -rf /led"

fi
